package com.chenjl.exchange;

import java.util.concurrent.atomic.AtomicLong;
/**
 * 
 * 2016-9-6 02:30:30
 * @author chenjinlong
 */
public class Request implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	private static final AtomicLong INVOKE_ID = new AtomicLong(1);
	
	private final Long id;
	private Object data;
	
	public Request() {
		this.id = INVOKE_ID.getAndIncrement();
	}
	
	public Long getId() {
		return id;
	}

	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "[id : "+id+" , data : "+data+"]";
	}
}